import request from '@/utils/request'

// 查询roomsResident列表
export function listRoomsResident(query) {
  return request({
    url: '/system/roomsResident/list',
    method: 'get',
    params: query
  })
}

// 查询roomsResident详细
export function getRoomsResident(id) {
  return request({
    url: '/system/roomsResident/' + id,
    method: 'get'
  })
}

// 新增roomsResident
export function addRoomsResident(data) {
  return request({
    url: '/system/roomsResident',
    method: 'post',
    data: data
  })
}

// 修改roomsResident
export function updateRoomsResident(data) {
  return request({
    url: '/system/roomsResident',
    method: 'put',
    data: data
  })
}

// 删除roomsResident
export function delRoomsResident(data) {
  return request({
    url: '/system/roomsResident/del',
    method: 'post',
    data: data
  })
}
